# Source https://aws.amazon.com/ru/blogs/containers/using-ebs-snapshots-for-persistent-storage-with-your-eks-cluster/
{{- if (.Values.global.enabledModules | has "snapshot-controller") }}
---
apiVersion: snapshot.storage.k8s.io/v1beta1
kind: VolumeSnapshotClass
metadata:
  {{- include "helm_lib_module_labels" (list . (dict "app" "ebs-csi-driver")) | nindent 2 }}
  name: aws
driver: ebs.csi.aws.com
deletionPolicy: Delete
{{- end }}
